package com.greedy.user.mapper;

import com.greedy.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Author: Greedy
 * @Date: Created in:2022-07-19 15:50
 * Description:
 */
@Mapper
public interface UserMapper {

    /**
     * 根据ID查询收件人所有的信息
     *
     * @param id
     * @return
     */
    @Select("select id, username, address from tb_user where id=#{id}")
    User getUserById(Long id);
}
